package com.mfdm.gui.perspectives;


import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;

import com.mfdm.gui.views.AuthorDetailsView;
import com.mfdm.gui.views.ChordView;
import com.mfdm.gui.views.ContentObjectViews;
import com.mfdm.gui.views.ListObjectsView;
import com.mfdm.gui.views.MostView;
import com.mfdm.gui.views.OperationsView;
import com.mfdm.gui.views.RateView;
import com.mfdm.gui.views.RecentUpdateView;
import com.mfdm.gui.views.RecentView;

public class SongPerspective extends BasePerspective {

	public static final String ID = "my-documents-management.perspective.song";
	
	@Override
	public void createInitialLayout(IPageLayout layout) {	
		
		super.createInitialLayout(layout);
		
		String editorArea = layout.getEditorArea();		
		layout.setEditorAreaVisible(false);
		
		IFolderLayout listObjectFolder = layout.createFolder("ListObjectFolder", IPageLayout.LEFT, 0.22f, editorArea);
		listObjectFolder.addView(ListObjectsView.ID);
		listObjectFolder.addView(RecentUpdateView.ID);		
		layout.getViewLayout(ListObjectsView.ID).setCloseable(false);		
		layout.addView(RateView.ID, IPageLayout.BOTTOM, 0.815f, "ListObjectFolder");
		
		
		layout.addStandaloneView(OperationsView.ID, false, IPageLayout.LEFT, 0.75f, editorArea);		
		layout.addView(ContentObjectViews.ID, IPageLayout.BOTTOM, 0.08f, OperationsView.ID);		
		layout.addView(ChordView.ID, IPageLayout.BOTTOM, 0.80f, ContentObjectViews.ID);
		
		
		layout.addView(AuthorDetailsView.ID, IPageLayout.TOP, 0.8f, editorArea);
		
		IFolderLayout folderLayout = layout.createFolder("Folder", IPageLayout.BOTTOM, 0.45f, AuthorDetailsView.ID);
		folderLayout.addView(MostView.ID);	
		folderLayout.addView(RecentView.ID);	
		
		

	}

}
